package com.example.score.mapper;

import com.example.score.entity.Teaclass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface TeaclassMapper {
    Integer create(Teaclass teaclass);
    List<Teaclass> getListById(Integer userId);
    List<Teaclass> getMembersByCourseId(Integer courseId);
//    List<Teaclass> showAllClassList();
    String getClassNameByID(Integer classId);

    int joinCourse(@Param("classId") Integer classId,@Param("courseId") Integer courseId , @Param("userId") Integer userId);
}
